/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package modulo;

import interfaces.IControlador;
import interfaces.IVista;

/**
 *
 * @author Overpower
 */
public class DatosCarreraVista extends javax.swing.JPanel implements IVista{

    /**
     * Creates new form DatosCarreraVista
     */
    public DatosCarreraVista() {
        initComponents();
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        _lblNombre = new javax.swing.JLabel();
        _tfNombre = new javax.swing.JTextField();
        _lblAnio = new javax.swing.JLabel();
        _tfAnio = new javax.swing.JTextField();
        _lblTitulo = new javax.swing.JLabel();
        _tfTitulo = new javax.swing.JTextField();
        _lblSemestres = new javax.swing.JLabel();
        _tfSemestres = new javax.swing.JTextField();
        _lblDireccion = new javax.swing.JLabel();
        _tfDireccion = new javax.swing.JTextField();
        _lblDescripcion = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        _taDescripcion = new javax.swing.JTextArea();

        setBorder(javax.swing.BorderFactory.createTitledBorder("Carrera"));

        _lblNombre.setText("Nombre");

        _tfNombre.setFocusable(false);

        _lblAnio.setText("Año");

        _tfAnio.setFocusable(false);

        _lblTitulo.setText("Titulo");

        _tfTitulo.setFocusable(false);

        _lblSemestres.setText("Semestres");

        _tfSemestres.setFocusable(false);

        _lblDireccion.setText("Direccion");

        _tfDireccion.setFocusable(false);

        _lblDescripcion.setText("Descripcion");

        _taDescripcion.setColumns(20);
        _taDescripcion.setRows(5);
        jScrollPane1.setViewportView(_taDescripcion);

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(_lblDireccion)
                            .addComponent(_lblDescripcion))
                        .addGap(14, 14, 14)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(_tfDireccion)
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 298, Short.MAX_VALUE)))
                    .addGroup(layout.createSequentialGroup()
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(_lblNombre)
                            .addComponent(_lblAnio)
                            .addComponent(_lblTitulo)
                            .addComponent(_lblSemestres))
                        .addGap(18, 18, 18)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(_tfAnio)
                            .addComponent(_tfNombre)
                            .addComponent(_tfTitulo, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 298, Short.MAX_VALUE)
                            .addComponent(_tfSemestres))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(_lblNombre)
                    .addComponent(_tfNombre, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(_lblAnio)
                    .addComponent(_tfAnio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(_lblTitulo)
                    .addComponent(_tfTitulo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(_lblSemestres)
                    .addComponent(_tfSemestres, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(_lblDireccion)
                    .addComponent(_tfDireccion, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(_lblDescripcion)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 150, javax.swing.GroupLayout.PREFERRED_SIZE)))
        );
    }// </editor-fold>//GEN-END:initComponents

    public String getDescripcion() {
        return _taDescripcion.getText();
    }

    public void setDescripcion( String _taDescripcion) {
        this._taDescripcion.setText(_taDescripcion);
    }

    public String getFecha() {
        return _tfAnio.getText();
    }

    public void setFecha(String _tfAnio) {
        this._tfAnio.setText(_tfAnio);
    }

    public String getDireccion() {
        return _tfDireccion.getText();
    }

    public void setDireccion(String _tfDireccion) {
        this._tfDireccion.setText(_tfDireccion);
    }

    public String getNombre() {
        return _tfNombre.getText();
    }

    public void setNombre(String _tfNombre) {
        this._tfNombre.setText(_tfNombre);
    }

    public String getSemestres() {
        return _tfSemestres.getText();
    }

    public void setSemestres( Integer _tfSemestres) {
        this._tfSemestres.setText(_tfSemestres.toString());
    }
    public void setSemestres( String _tfSemestres) {
        this._tfSemestres.setText(_tfSemestres);
    }

    public String getTitulo() {
        return _tfTitulo.getText();
    }

    public void setTitulo(String _tfTitulo) {
        this._tfTitulo.setText(_tfTitulo);
    }


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel _lblAnio;
    private javax.swing.JLabel _lblDescripcion;
    private javax.swing.JLabel _lblDireccion;
    private javax.swing.JLabel _lblNombre;
    private javax.swing.JLabel _lblSemestres;
    private javax.swing.JLabel _lblTitulo;
    private javax.swing.JTextArea _taDescripcion;
    private javax.swing.JTextField _tfAnio;
    private javax.swing.JTextField _tfDireccion;
    private javax.swing.JTextField _tfNombre;
    private javax.swing.JTextField _tfSemestres;
    private javax.swing.JTextField _tfTitulo;
    private javax.swing.JScrollPane jScrollPane1;
    // End of variables declaration//GEN-END:variables

    
    
    @Override
    public void setControlador(IControlador _controlador) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public IControlador getControlador() {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }
}
